﻿using System;

namespace GetMax
{
    class GetMaxNumber
    {
        static int GetMax(int firstNumber, int secondNumber)
        {
            return firstNumber > secondNumber ? firstNumber : secondNumber;
        }

        static int GetMax(params int[] numbers)
        {
            int result = GetMax(numbers[0], numbers[1]);

            for (int index = 1, length = numbers.Length; index < length; index++)
            {
                result = GetMax(result, numbers[index]);
            }
            return result;
        }

        static void Main(string[] args)
        {
            const int NumbersLength = 3;
            int[] numbers = new int[NumbersLength];

            for (int index = 0; index < NumbersLength; index++)
            {
                numbers[index] = int.Parse(Console.ReadLine());
            }

            Console.WriteLine(GetMax(numbers));
        }
    }
}
